Skip to content

Conversation

@docto-rin
Copy link
Owner

Comment on lines +143 to +145
root_lower, root_higher = split_bst_aux(root)
size_lower = count_tree_nodes(root_lower)
size_higher = count_tree_nodes(root_higher)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一回ですることもできますが、おそらくこういう風にツーパスにしたほうが読みやすいでしょうね。

また、ループに直すことも可能ですが、結構面倒です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants